Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NPdfExporter<TContent> Class / SaveToFileAsync Method / SaveToFileAsync(String) Method
The full path to the file to save to. If the file already exists, it is overwritten.


In This Topic
    SaveToFileAsync(String) Method
    In This Topic
    Renders the document as PDF to the specified file. In sandboxed platforms like WebAssembly this method may not work due to security permissions (i.e. access to the file system may be forbidden).
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function SaveToFileAsync( _
       ByVal filePath As System.String _
    ) As NPromise(Of NUndefined)
    'Usage
     
    
    Dim instance As NPdfExporter(Of TContent)
    Dim filePath As System.String
    Dim value As NPromise(Of NUndefined)
     
    value = instance.SaveToFileAsync(filePath)
    public virtual NPromise<NUndefined> SaveToFileAsync( 
       System.string filePath
    )

    Parameters

    filePath
    The full path to the file to save to. If the file already exists, it is overwritten.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also